ci: publish major and minor tags#88
Merged
woile merged 1 commit intocommitizen-tools:masterfrom Feb 5, 2025
nikaro:ci/publish-major-minor-tag
Merged
ci: publish major and minor tags#88woile merged 1 commit intocommitizen-tools:masterfrom nikaro:ci/publish-major-minor-tag
woile merged 1 commit intocommitizen-tools:masterfrom
nikaro:ci/publish-major-minor-tag
Conversation
Contributor
Author
|
Since you are using the default token with I added the |
Member
|
Please, update the bump version to use |
Make sure major and minor tags are up to date on a patch release.
This would allow the common practice to use major tag on the action:
```yaml
- name: Create bump and changelog
uses: commitizen-tools/commitizen-action@0
```
(Ideally you may want to prefix version with `v` 🤷)
This what this third party action does under the hood:
```bash
$ TAG="0.21.0"
$ MINOR="${TAG%.*}"
$ echo $MINOR
0.21
$ MAJOR="${MINOR%.*}"
$ echo $MAJOR
0
```
This is used here for example: https://github.com/astral-sh/setup-uv/blob/main/.github/workflows/update-major-minor-tags.yml
Contributor
Author
Hi, i've done it. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Make sure major and minor tags are up to date on a patch release.
This would allow the common practice to use major tag on the action:
(Ideally you may want to prefix version with
v🤷)This what this third party action does under the hood:
This is used here for example: https://github.com/astral-sh/setup-uv/blob/main/.github/workflows/update-major-minor-tags.yml